import java.io.*;
public class serilize {
	public static void main(String[] args){
		Employee e1=new Employee();
		e1.id=11;
		e1.address="mavinkurva";
		e1.ssn=123;
		Employee e2=new Employee();
		e2.id=15;
		e2.address="minkurva";
		e2.ssn=15;
		FileOutputStream fo;
		ObjectOutputStream ob;
		
		try{
			fo=new FileOutputStream("e.ser");
			ob=new ObjectOutputStream(fo);
			ob.writeObject(e1);
			ob.writeObject(e1);
			ob.close();
			fo.close();
		}
		catch(IOException f){
			f.printStackTrace();
			
		}
		System.out.println("serialized");
	}

	
	
}
